﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace CodeGenerate
{
    [DataContract]
    public class Column 
    {
        [DataMember]
        public string Name
        {
            get;
            set;
        }


        [DataMember]
        public string Description
        {
            get;
            set;
        }
        [DataMember]
        public int Order
        {
            get;
            set;
        }
        [DataMember]
        public DbType DataType
        {
            get;
            set;
        }

        [DataMember]
        public bool IsPrimaryKey
        {
            get;
            set;
        }
       
        [DataMember]
        public bool IsNullable
        {
            get;
            set;
        }
        [DataMember]
        public int MaxLength
        {
            get;
            set;
        }
        [DataMember]
        public int NumberPrecision
        {
            get;
            set;
        }
        [DataMember]
        public int NumberScale
        {
            get;
            set;
        }

        [DataMember]
        public string DataTypeName
        {
            get;
            set;
        }
        [DataMember]
        public string Default
        {
            get;
            set;
        }

        [DataMember]
        public bool IsSelect
        {
            get;
            set;
        }

        [DataMember]
        public bool IsWhere
        {
            get;
            set;
        }
    }
}
